<template>
	<view class="container">
		<view class="search-box">
			<headerSearch bgColor="#F6F6F6" placeholder="搜索"></headerSearch>
		</view>
		<view class="list">
			<view class="item">
				<view class="left">
					<view class="name">
						李四（职位名称）
					</view>
					<view class="num">
						12345678910
					</view>
				</view>
				<view class="right">
					<image :src="$img_path('/pagesRegion/10.png')" mode="heightFix"></image>
					<image :src="$img_path('/pagesRegion/11.png')" mode="heightFix"></image>
				</view>
			</view>
		</view>
		
		
		<view class="bottom-btn">
			<view class="b-box">
				<button @click="toAssign">添加员工</button>
			</view>
		</view>
	</view>
</template>

<script>
	import headerSearch from '@/components/header-search/header-search.vue'
	export default {
		components:{
			headerSearch,
		},
		data() {
			return {
				
			};
		},
		methods:{
			toAssign(){
				uni.navigateTo({
					url:'/pagesRegion/staff/form_detail'
				})
			}
		}
	}
</script>

<style>
	page{
		background-color: #FFFFFF;
	}
</style>
<style lang="scss" scoped>
.container{
	padding: 0 22rpx;
	box-sizing: border-box;
	.search-box{
		position: sticky;
		top: 0;
		padding-top: 14rpx;
		header-search{
			height: 84rpx;
		}
	}
	.list{
		.item{
			background: #FFFFFF;
			box-shadow: 0rpx 0rpx 12rpx 2rpx rgba(223,223,223,0.56);
			border-radius: 20rpx;
			border: 2rpx solid #EEEEEE;
			margin-top: 20rpx;
			padding: 24rpx 32rpx 24rpx 28rpx;
			box-sizing: border-box;
			display: flex;
			align-items: center;
			justify-content: space-between;
			.left{
				.name{
					font-weight: bold;
					font-size: 28rpx;
					color: #000000;
					line-height: 40rpx;
				}
				.num{
					font-weight: 400;
					font-size: 26rpx;
					color: #464646;
					line-height: 36rpx;
					margin-top: 20rpx;
				}
			}
			.right{
				display: flex;
				align-items: center;
				image{
					width: 40rpx;
					height: 46rpx;
					&:last-child{
						margin-left: 52rpx;
					}
				}
			}
		}
	}
}
.bottom-btn{
		width: 100%;
		height: 116rpx;
		margin-top: 20rpx;
		.b-box{
			position: fixed;
			bottom: 0;
			left: 0;
			right: 0;
			width: 100%;
			padding: 0 22rpx;
			box-sizing: border-box;
			padding-bottom: constant(safe-area-inset-bottom);
			padding-bottom: env(safe-area-inset-bottom);
			button{
				width: 100%;
				height: 96rpx;
				background: linear-gradient( 135deg, #FFA233 0%, #FB4C4C 100%);
				border-radius: 80rpx;
				font-weight: bold;
				font-size: 36rpx;
				color: #FFFFFF;
				line-height: 96rpx;
			}
		}
	}
</style>
